package com.ruoyi.bysj.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 车主预约对象 sys_appointment
 * 
 * @author laowang
 * @date 2021-10-15
 */
public class SysAppointment extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 预约单号 */
    private Long appointmentId;

    /** 预约业务 */
    @Excel(name = "预约业务")
    private String appointmentBusiness;

    /** 预约日期 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "预约日期", width = 30, dateFormat = "yyyy-MM-dd")
    private Date appointmentDate;

    /** 预约时间段（1上午 2下午） */
    @Excel(name = "预约时间段", readConverterExp = "1=上午,2=下午")
    private String appointmentTime;

    /** 预约车主 */
    @Excel(name = "预约车主")
    private String appointmentName;

    /** 车辆型号 */
    @Excel(name = "车辆型号")
    private String appointmentCar;

    /** 问题描述 */
    @Excel(name = "问题描述")
    private String appointmentProblem;

    /** 预约状态（1未审核 2预约成功） */
    @Excel(name = "预约状态", readConverterExp = "1=未审核,2=预约成功")
    private String appointmentState;

    public void setAppointmentId(Long appointmentId) 
    {
        this.appointmentId = appointmentId;
    }

    public Long getAppointmentId() 
    {
        return appointmentId;
    }
    public void setAppointmentBusiness(String appointmentBusiness) 
    {
        this.appointmentBusiness = appointmentBusiness;
    }

    public String getAppointmentBusiness() 
    {
        return appointmentBusiness;
    }
    public void setAppointmentDate(Date appointmentDate) 
    {
        this.appointmentDate = appointmentDate;
    }

    public Date getAppointmentDate() 
    {
        return appointmentDate;
    }
    public void setAppointmentTime(String appointmentTime) 
    {
        this.appointmentTime = appointmentTime;
    }

    public String getAppointmentTime() 
    {
        return appointmentTime;
    }
    public void setAppointmentName(String appointmentName) 
    {
        this.appointmentName = appointmentName;
    }

    public String getAppointmentName() 
    {
        return appointmentName;
    }
    public void setAppointmentCar(String appointmentCar) 
    {
        this.appointmentCar = appointmentCar;
    }

    public String getAppointmentCar() 
    {
        return appointmentCar;
    }
    public void setAppointmentProblem(String appointmentProblem) 
    {
        this.appointmentProblem = appointmentProblem;
    }

    public String getAppointmentProblem() 
    {
        return appointmentProblem;
    }
    public void setAppointmentState(String appointmentState) 
    {
        this.appointmentState = appointmentState;
    }

    public String getAppointmentState() 
    {
        return appointmentState;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("appointmentId", getAppointmentId())
            .append("appointmentBusiness", getAppointmentBusiness())
            .append("appointmentDate", getAppointmentDate())
            .append("appointmentTime", getAppointmentTime())
            .append("appointmentName", getAppointmentName())
            .append("appointmentCar", getAppointmentCar())
            .append("appointmentProblem", getAppointmentProblem())
            .append("appointmentState", getAppointmentState())
            .toString();
    }
}
